<?php

namespace app\mall\controller\api\uc\car;


use app\mall\enum\YesNoEnum;
use app\mall\model\MallUserCar;

class Search extends Base
{

    public function index()
    {
        $list = MallUserCar::where("uid", $this->getUid())
            ->where('status', YesNoEnum::YES)
            ->with(['goodsStockBind', 'goodsBind', 'storeBind'])
            ->order('id', 'desc')
            ->paginate();

        return json_return($list->items());
    }

}